package com.framework.boc.admin.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author Leil
 * @since 2020-08-27
 */
@TableName("JY_ORDER_INFO")
@ApiModel(value="OrderInfo对象", description="")
public class OrderInfo implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "商户订单号")
    @TableId("ORDER_NO")
    private String orderNo;

    @ApiModelProperty(value = "商户号")
    @TableField("MERCHANT_NO")
    private String merchantNo;

    @ApiModelProperty(value = "订单金额")
    @TableField("ORDER_AMOUNT")
    private BigDecimal orderAmount;

    @ApiModelProperty(value = "订单开始时间")
    @TableField("ORDER_START_TIME")
    private Date orderStartTime;

    @ApiModelProperty(value = "订单结束时间")
    @TableField("ORDER_END_TIME")
    private Date orderEndTime;

    @ApiModelProperty(value = "订单状态：-1-失败，1-处理中，2-成功")
    @TableField("ORDER_STATUS")
    private Integer orderStatus;

    @TableField(exist=false)
    private List<ContractInfo> listContractInfo;

    public List<ContractInfo> getListContractInfo() {
        return listContractInfo;
    }

    public void setListContractInfo(List<ContractInfo> listContractInfo) {
        this.listContractInfo = listContractInfo;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getMerchantNo() {
        return merchantNo;
    }

    public void setMerchantNo(String merchantNo) {
        this.merchantNo = merchantNo;
    }

    public BigDecimal getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(BigDecimal orderAmount) {
        this.orderAmount = orderAmount;
    }

    public Date getOrderStartTime() {
        return orderStartTime;
    }

    public void setOrderStartTime(Date orderStartTime) {
        this.orderStartTime = orderStartTime;
    }

    public Date getOrderEndTime() {
        return orderEndTime;
    }

    public void setOrderEndTime(Date orderEndTime) {
        this.orderEndTime = orderEndTime;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    @Override
    public String toString() {
        return "OrderInfo{" +
        "orderNo=" + orderNo +
        ", merchantNo=" + merchantNo +
        ", orderAmount=" + orderAmount +
        ", orderStartTime=" + orderStartTime +
        ", orderEndTime=" + orderEndTime +
        ", orderStatus=" + orderStatus +
        "}";
    }
}
